const modules = import.meta.glob('/src/Directives/*')

export default {
    install: (app: any) => {
        for (const key in modules) {
            const name = key.slice(key.lastIndexOf('/') + 1, key.lastIndexOf('.'))
            modules[key]().then((module: any) => {
                app.directive(name, module.default || module)
            })
        }
    }
}